<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<Universum.Model.Domain.Resource>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Universum - Resource details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <fieldset>
        <legend>In order for others to download this file use the link below</legend>
        <p>
          <strong>  Link:</strong>
           
            <%= Html.Encode( Html.UserActionLink<ResourceController>(it => it.ShowFile(Model.ID.ToString()),"Download file"))%>
            
        </p>
        <p>
        or
        </p>
       <p> 
       <strong>Href:</strong> <%= Html.Encode(Html.ExtractUrlWithUsername<ResourceController>(it => it.ShowFile(Model.ID.ToString()))) %>
       </p>
    </fieldset>
    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Breadcrumbs" runat="server">
<%= Html.Breadcrumb().Home().Append<ResourceController>(it=>it.Index(""),"Resources").AppendText("Details for:" + Model.FileName).End() %>
</asp:Content>

